package br.com.edoc.entidade;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import br.com.edoc.enun.util.StatusFuncionario;
@Entity
@Table(name="FUNCIONARIO")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public class Funcionario extends PessoaFisica{
	
	
	private static final long serialVersionUID = -8205224356778519687L;
	@Temporal(TemporalType.DATE)
	@Column(name="FUNC_DATAADMISSAO")
	private Date dataAdmissao;
	@Column(name="FUNC_STATUS",nullable=true)
	@Enumerated(EnumType.ORDINAL)
	private StatusFuncionario status;
	@Temporal(TemporalType.DATE)
	@Column(name="FUNC_DATADEMISSAO")
	private Date dataDemisssao;

	public Date getDataAdmissao() {
		return dataAdmissao;
	}

	public void setDataAdmissao(Date dataAdmissao) {
		this.dataAdmissao = dataAdmissao;
	}

	public StatusFuncionario getStatus() {
		return status;
	}

	public void setStatus(StatusFuncionario status) {
		this.status = status;
	}

	public Date getDataDemisssao() {
		return dataDemisssao;
	}

	public void setDataDemisssao(Date dataDemisssao) {
		this.dataDemisssao = dataDemisssao;
	}


	
	

}
